cc.Class({
    extends: cc.Component,

    properties: {
        //火球下降的速度单位
        ySpeed: 10
    },

    onLoad: function () {
    },

    update: function (dt) {
        this.node.y = this.node.y - this.ySpeed;
        if(this.node.y < -this.game.node.height){
            this.node.destroy();
            this.game.passFireBoom();
        }
    },

    onCollisionEnter: function (other, self) {
        this.node.destroy();
    },

});
